package com.bjpowernode.mvc.model.param;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 投资需要的参数
 */
@Data
public class BidParam {

    @NotNull(message = "产品无效")
    @Min(value = 1, message = "产品不存在")
    private Integer productId;

    @NotNull(message = "投资金额必须是有效的金额")
    private BigDecimal bidMoney;
}
